package com.jinxi.demo.service.impl;

import com.jinxi.demo.mapper.DemoMapper;
import com.jinxi.demo.pojo.entity.TabCommodity;
import com.jinxi.demo.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DemoServiceImpl implements DemoService {

    @Autowired
    private DemoMapper demoMapper;

    public List<TabCommodity> getAllCommodities() {
        return demoMapper.getTabCommodityList();
    }

}
